﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
namespace SPAutomaticListsPopulator.TreeView
{
    public class TreeNodeList:TreeNodeBase
    {
        public SPList List { 
            
            get
            {
                return list;
            } 

            set
            {
                list = value;
                if (value is SPDocumentLibrary)
                {
                    this.ImageKey = "DocumentLibrary";
                }
            }
        
        }
        private SPList list;

        public TreeNodeList(string Name):base(Name)
        {
            this.ImageKey = "List";
        }
    }
}
